import requests
'''response=requests.get('https://www.baidu.com/s?wd=python')
data={'wd':'java'}
response=requests.get('https://www.baidu.com/s',params=data)
print(response.url)
print(response.text)'''
headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
}
req=requests.get('https://www.baidu.com',headers=headers)
print(req.content.decode('utf-8'))
